package com.efesco.service.onOff;

import com.bstek.dorado.common.*;
import com.bstek.dorado.data.*;
import com.bstek.dorado.view.*;
import com.bstek.dorado.view.data.*;
import com.bstek.dorado.view.control.*;
import com.efesco.system.ClientRightControl;


/**
 * OnOffQueryViewModel
 */
public class OnOffQueryViewModel extends DefaultViewModel {
  protected void initControls()
      throws Exception {
    super.initControls();
    String id="ON_OFF_MODIFY";
	Control control=this.getControl(id);
	ClientRightControl clientRightControl=new ClientRightControl();	
	clientRightControl.rightControl(id, control,DoradoContext.getContext());
    //**********//   //add by linzihui for "unite query" to use
    DoradoContext context = DoradoContext.getContext();
    com.efesco.unite_query.util.uniteQueryControlForEmp(context, getDataset("datasetCondition"),"employee_name#EMPLOYEE_ID#company_chinese_name#null#company_code#null");
    //**********//
  }

}
